<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<div id="app">
  <h2>{{fullName}}</h2>
</div>

<script src="../js/vue%20.js"></script>
<script>
  //let(变量)/const(常量)
  //声明式编程
  const app = new Vue({
    el: "#app",
    data: {
      //定义数据
      firstName: 'JackeyLove',
      lastName: 'ClearLove'
    },
    computed: {
      fullName: function (){
        return this.firstName + ' ' + this.lastName
      }
    }

  })
</script>
</body>
</html>